package cn.qw.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.qw.pojo.Employee;
import cn.qw.dao.EmployeeMapper;
@Service
public class EmployeeService{

    @Resource
    private EmployeeMapper employeeMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return employeeMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Employee record) {
        return employeeMapper.insert(record);
    }

    
    public int insertSelective(Employee record) {
        return employeeMapper.insertSelective(record);
    }

    
    public Employee selectByPrimaryKey(Integer id) {
        return employeeMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Employee record) {
        return employeeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Employee record) {
        return employeeMapper.updateByPrimaryKey(record);
    }

}
